home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6096 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: odin.visigenic.com!news
  2. From: Tim O'Neil <toneil@visigenic.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: [Q]Is there any API that  move a directory to another (drive 's) directory ?
  5. Date: Thu, 22 Feb 1996 09:58:27 +0000
  6. Organization: Visigenic Software, Inc.
  7. Message-ID: <312C3E43.2C06@visigenic.com>
  8. References: <312BCF42.6629@star.lgsw.re.kr> <21FEB199622562883@erich.triumf.ca>
  9. NNTP-Posting-Host: vsi48.visigenic.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (WinNT; I)
  14.  
  15. > Is an API some windoze thing??
  16.  
  17. An API is any realated group of functions.
  18.  
  19. > The _only_ way I can think of to move files (or a directory tree) from one
  20. > drive to another is to copy them. Under MS-DOS, you can move files between
  21. > directories _on_the_same_drive_ by messing with directory info, and not
  22. > actually moving the data, but this clearly won't work to actually transfer the
  23. > data to another drive.
  24.  
  25. Write a batch file that takes two arguments (source and target directory),
  26. call it 'mv', after the unix mv command, have it perform a copy and then a deltree.
  27.  
  28. > You might want to ask this question in a group related to your platform, since
  29. > it doesn't seem to be a C question.  (perhaps try
  30. > comp.os.ms-windows.programmer.misc, if I guessed right.)
  31.  
  32. Agreed, but what the heck. Its a minor enough question to answer.
  33.  
  34. -- 
  35. -Tim
  36. "It is by caffeine alone I set my mind in motion.  It is by the beans of
  37. Java that the thoughts aquire speed, the hands aquire shakes, the shakes
  38. become  a warning.  It is by caffeine  alone I set my  mind  in motion."
  39.